package com.yumeng.framework.auth.shiro.token;

import com.yumeng.common.data.enums.AuthClientType;
import com.yumeng.common.data.enums.AuthMode;
import lombok.Getter;
import lombok.Setter;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 *
 * @author wxd
 * @date 2025/11/17 14:59
 */
@Getter
@Setter
public class MyUsernamePasswordToken extends UsernamePasswordToken {

    public MyUsernamePasswordToken(String username, String password, AuthMode authMode) {
        super(username, password);
        this.authMode = authMode;
    }

    public MyUsernamePasswordToken(UsernamePasswordToken token, AuthMode authMode, AuthClientType authClientType) {
        super(token.getUsername(), token.getPassword(), token.isRememberMe(), token.getHost());
        this.authMode = authMode;
        this.authClientType = authClientType;
    }

    private AuthMode authMode;
    private AuthClientType authClientType;
}
